<html>
<head><meta charset="utf-8"><title>where do partial-eq impls live? · t-libs · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/index.html">t-libs</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/where.20do.20partial-eq.20impls.20live.3F.html">where do partial-eq impls live?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="196615610"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/where%20do%20partial-eq%20impls%20live%3F/near/196615610" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/where.20do.20partial-eq.20impls.20live.3F.html#196615610">(May 06 2020 at 10:38)</a>:</h4>
<p>So <code>fn()</code> is <code>PartialEq</code> (<a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=286faf83a4f97f9e9bd3843aef14ab40" title="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=286faf83a4f97f9e9bd3843aef14ab40">playground</a>), but where can I find that impl in the stdlib?</p>



<a name="196615626"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/where%20do%20partial-eq%20impls%20live%3F/near/196615626" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/where.20do.20partial-eq.20impls.20live.3F.html#196615626">(May 06 2020 at 10:38)</a>:</h4>
<div class="codehilite"><pre><span></span><code><span class="k">fn</span> <span class="nf">is_partial_eq</span><span class="o">&lt;</span><span class="n">T</span>: <span class="nb">PartialEq</span><span class="o">&gt;</span><span class="p">()</span><span class="w"> </span><span class="p">{</span><span class="w"></span>

<span class="p">}</span><span class="w"></span>

<span class="k">fn</span> <span class="nf">main</span><span class="p">()</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="n">is_partial_eq</span>::<span class="o">&lt;</span><span class="k">fn</span><span class="p">()</span><span class="o">&gt;</span><span class="p">();</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>
</code></pre></div>



<a name="196616467"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/where%20do%20partial-eq%20impls%20live%3F/near/196616467" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tim Diekmann <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/where.20do.20partial-eq.20impls.20live.3F.html#196616467">(May 06 2020 at 10:48)</a>:</h4>
<p>Here it is:<br>
<a href="https://doc.rust-lang.org/stable/src/core/ptr/mod.rs.html#1335-1351" title="https://doc.rust-lang.org/stable/src/core/ptr/mod.rs.html#1335-1351">https://doc.rust-lang.org/stable/src/core/ptr/mod.rs.html#1335-1351</a></p>



<a name="196616778"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/where%20do%20partial-eq%20impls%20live%3F/near/196616778" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tim Diekmann <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/where.20do.20partial-eq.20impls.20live.3F.html#196616778">(May 06 2020 at 10:52)</a>:</h4>
<p>The docs also contain <code>fn</code> as type: <a href="https://doc.rust-lang.org/stable/std/primitive.fn.html" title="https://doc.rust-lang.org/stable/std/primitive.fn.html">https://doc.rust-lang.org/stable/std/primitive.fn.html</a></p>



<a name="196632386"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/where%20do%20partial-eq%20impls%20live%3F/near/196632386" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/where.20do.20partial-eq.20impls.20live.3F.html#196632386">(May 06 2020 at 13:16)</a>:</h4>
<p><span class="user-mention" data-user-id="216785">@Tim Diekmann</span> thanks!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>